package demowj.domain;

/**
 * @author wujun
 * @description
 * @date 19/5/23.
 */
public class Subjects {
    private String name;
    private String teacher;

    public Subjects() {
        System.out.println("One subjects waiting scheduling!");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("set name of Subjects:" + name);
        this.name = name;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        System.out.println("set teacher of Subjects :" + teacher);
        this.teacher = teacher;
    }

    public void print() {
        System.out.println("Subjects  :" + name + "of " + teacher + "in schedule");
    }

}
